package com.qidian.mes.md.controller;

import com.qidian.mes.md.service.EmployeeService;
import com.qidian.mes.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-10 15:36
 **/
@RestController
@RequestMapping("/emp")
@CrossOrigin
public class EmployeeController {
    @Autowired
    EmployeeService employeeService;
    @GetMapping
    public QdResult getEmployees(@RequestParam String name){
        return employeeService.getEmployees(name);
    }
}
